<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="utf-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript">
	if (window != window.top)
		window.top.location.href = window.location.href;
</script>
</head>
<body>
	<nav class="navbar navbar-default" role="navigation">
	<div class="container-fluid">
		<!-- Brand and toggle get grouped for better mobile display -->
		<div class="navbar-header">
			<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
				<span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span
					class="icon-bar"></span>
			</button>
			<a class="navbar-brand" target="mainFrame" href="<%=g_basePath%>/main_welcome.htm">Bond Mix</a>
		</div>

		<!-- Collect the nav links, forms, and other content for toggling -->
		<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
			<ul class="nav navbar-nav">
				<c:forEach var="um" items="${user_Module_list}" varStatus="status">
					<li class="dropdown"><a href="#" class="dropdown-toggle" target="mainFrame" data-toggle="dropdown">${um.module.displayName }
							<b class="caret"></b>
					</a>
						<ul class="dropdown-menu">
							<c:forEach var="subml" items="${um.subModuleList}" varStatus="status">
								<c:if test="${subml.displayName ne '-'}">
									<li><a href="<%=g_basePath%>${subml.url }" target="mainFrame">${subml.displayName } </a></li>
								</c:if>
								<c:if test="${subml.displayName eq '-'}">
									<li class="divider"></li>
								</c:if>
							</c:forEach>
						</ul></li>
				</c:forEach>
			</ul>

			<ul class="nav navbar-nav navbar-right">
				<li class="dropdown"><a href="#" class="btn dropdown-toggle" data-toggle="dropdown">${loginUser.user.userName }
						<b class="caret"></b>
				</a>
					<ul class="dropdown-menu">
						<c:forEach var="user" items="${loginUser.userList}" varStatus="idx">
							<li><a href="<%=g_basePath%>userChange/${idx.index}.htm">${user.userName }</a></li>
						</c:forEach>
						<li class="divider"></li>
						<li><a href="<%=g_basePath%>logout.htm"><spring:message code="login.logout" /></a></li>
					</ul></li>
			</ul>
		</div>

	</div>
	</nav>

	<div class="container-fluid">
		<iframe id="mainFrame" name="mainFrame" src="<%=g_basePath%>/main_welcome.htm" frameborder="0"
			style="width: 100%; height: 100%;"></iframe>
	</div>
	<script src="<%=g_basePath%>/js/bootstrap.js"></script>
</body>


</html>